﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Agriculture.Domain
{
    /// <summary>
    /// 药品订单模型
    /// </summary>
    public class MedicineOrderModel : EntityModel
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNo { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        
        /// <summary>
        /// 收货人
        /// </summary>
        public string Receiver { get; set; }
        
        /// <summary>
        /// 收货人电话
        /// </summary>
        public string ReceiverPhone { get; set; }
        
        /// <summary>
        /// 收货地址
        /// </summary>
        public string ReceiverAddress { get; set; }
        
        /// <summary>
        /// 订单总金额
        /// </summary>
        public decimal TotalAmount { get; set; }
        
        /// <summary>
        /// 订单状态
        /// </summary>
        public int Status { get; set; }
        
        /// <summary>
        /// 是否删除(0:未删除，1:已删除)
        /// </summary>
        public int IsDeleted { get; set; }
        
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        
        /// <summary>
        /// 用户对象（导航属性）
        /// </summary>
        public virtual UserModel User { get; set; }
    }
}
